/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.
 */

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
  guideSidebar: [
    "intro",
    {
      type: "category",
      label: "Define",
      items: [{ type: "autogenerated", dirName: "01-define" }],
    },
    {
      type: "category",
      label: "Develop",
      items: [
        "develop/intro",
        "develop/prerequisites",
        "develop/environment",
        {
          type: "category",
          label: "1: Headless CMS and Blog",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-1" }],
        },
        {
          type: "category",
          label: "2. Portal App",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-2" }],
        },
        {
          type: "category",
          label: "3: User Authentication",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-3" }],
        },
        {
          type: "category",
          label: "4: Payment Service",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-4" }],
        },
        {
          type: "category",
          label: "5: AI Integration",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-5" }],
        },
        {
          type: "category",
          label: "6: Event Driven Features",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-6" }],
        },
        {
          type: "category",
          label: "7: Runtime Performance",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-7" }],
        },
        {
          type: "category",
          label: "8: Analytics & Observability",
          items: [{ type: "autogenerated", dirName: "02-develop/scenario-8" }],
        },
      ],
    },
    /*
    {
      type: 'category',
      label: 'Deploy',
      items: [{type: 'autogenerated', dirName: '03-deploy'}],
    },
    {
      type: 'category',
      label: 'DevOps',
      items: [{type: 'autogenerated', dirName: '04-devops'}],
    },
    'glossary',
    */
  ],

  toolsSidebar: [{ type: "autogenerated", dirName: "05-devtools" }],

  trainingSidebar: [{ type: "autogenerated", dirName: "99-training" }],

  /*
  // By default, Docusaurus generates a sidebar from the docs folder structure
  tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],

  // But you can create a sidebar manually
  tutorialSidebar: [
    'intro',
    'hello',
    {
      type: 'category',
      label: 'Tutorial',
      items: ['tutorial-basics/create-a-document'],
    },
  ],
   */
};

module.exports = sidebars;
